<?php

class C_logout extends CI_Controller {

	public function index(){
		//Creating an user object.
		$this->load->model('m_user', 'user');
		
		//No need to load user data for logout.
		
		//Logging out the user.
		$this->user->logout();
		
		//Sending the user to the start page.
		redirect('c_start');
	}
}
?>